package com.atguigu.common.exception;

import lombok.Data;

/**
 * @Author zhaolie
 * @Date 2021/8/3 11:03 上午
 * @Version 1.0
 * @Description
 */

@SuppressWarnings({"all"})
public enum BizCodeEnum {

    UNKNOWN_EXCEPTION(10000, "系统未知异常"),
    VAILD_EXCEPTION(10001, "系统格式校验失败");

    private Integer code;
    private String message;

    BizCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
